package com.board.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class LoginByPassFrom {
    @ApiModelProperty("用户手机号")
    @NotBlank(message = "不能为NULL")
    @Size(min = 11,max = 11,message = "电话号码格式不正确")
    private String userPhone;

    @ApiModelProperty("用户密码")
    @NotBlank(message = "密码不能为null")
    @Size(min = 6,max =12,message = "密码长度最小为6，最大为12")
    private String userPassword;
}
